home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / SpellCompositor / BasicWindowMonitor.java < prev    next >
Encoding:
Java Source  |  2001-06-23  |  928 b   |  25 lines

  1. //
  2. //  BasicWindowMonitor.java
  3. //  InteractionFrame
  4. //
  5. //  Created by sziegler on Tue Jun 12 2001.
  6. //  Copyright (c) 2001 __CompanyName__. All rights reserved.
  7. //
  8. /*
  9. This file and its intellectual contents are considered property of the creator and are to be treated as such with respect to use in other applications.  Any use of this software for any purpose whatsoever must have explicit permission from the author of the file.  This code is part of an ongoing development process for future possible products, and so is considered private property.
  10. Do not use without permission.  Author: Scott C. Ziegler <Aslan@Narnia.net>
  11. */
  12.  
  13. import java.awt.*;
  14. import java.awt.Window;
  15. import java.awt.event.*;
  16.  
  17. public class BasicWindowMonitor extends WindowAdapter {
  18.     public void windowClosing(WindowEvent e) {
  19.         Window w = e.getWindow();
  20.         w.setVisible(false);
  21.         w.dispose();
  22.         System.exit(0);
  23.         }
  24.     }
  25.